package com.wind.sample.rocketmq;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.DependsOn;


@SpringBootApplication
@DependsOn("rocketMQTemplate") // 确保模板优先初始化
public class RocketMQApplication  {

    public static void main(String[] args) {
        SpringApplication.run(RocketMQApplication.class, args);
    }

}
